package com.person.mengshuai.mytestdemo.controller;

import com.person.mengshuai.mytestdemo.domain.response.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * nacos测试类
 *
 * @author 孟帅
 * @since 2024/7/29
 */
@RestController
@RequestMapping("/log")
@Slf4j
public class LogController {

    @GetMapping("/logInfoTest")
    public Result logInfoTest() {
        log.debug("the class LogController method logInfoTest is debug");
        log.info("the class LogController method logInfoTest is info");
        log.warn("the class LogController method logInfoTest is warn");
        log.error("the class LogController method logInfoTest is error");
        return Result.success("logInfoTest");
    }
}
